package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Attendance;
import cn.wolfcode.crm.query.AttendanceQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.Date;
import java.util.List;

public interface IAttendanceService {
    int deleteByPrimaryKey(Long id);

    int insert(Attendance record);

    Attendance selectByPrimaryKey(Long id);

    List<Attendance> selectAll();

    int updateByPrimaryKey(Attendance record);

    PageResult query(AttendanceQueryObject qo);

    int updateTime(String timeOut, Boolean state, Long id);

    Long selectIdByName(String employeeName);

    Attendance selectByUsername(String username);

    void destroy();
}
